time
Type
function
Summary
Returns the current time.
Syntax
the [{ long | abbreviated | short }] [{ english | system }] time
time()
Description
Use the time function to display the current time to the user, or to store the time for later use.
If the twelveHourTime property is set to false, the value returned by the time function does not include "AM" or "PM".
The format of the system time forms is set by the Date & Time control panel (on Mac OS systems), the Date control panel (on Windows|Windows systems), or the LANG environment variable (on Unix systems).
Linux systems don't have a short system time, so the engine modifies the system time format string to remove the seconds. This works in most locales, but not all and our advice is to stick to using the long system time on Linux systems.
Examples
set the lastModifiedTime of this card to the time
set the label of button "Clock" to the short system time
Related
function: ticks
glossary: property, Windows, Unix, format, return
keyword: system, english, abbreviated
property: useSystemDate
command: convert
control structure: function
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile